cody - HTMLify profile

cody
4270 Files
632797 Views
Latest files of /cody/swapnilsparsh/30DaysOfJavaScript/111 - BMI Calculator
@import url('https://fonts.googleapis.com/css2?family=Nunito:ital@1&family=Roboto+Mono&family=Rubik+Glitch&display=swap');
footer{
position: absolute;
bottom: 0;
background-color: #100d0d;
text-align: center;
color: white;
footer{
position: absolute;
bottom: 0;
background-color: #100d0d;
text-align: center;
color: white;
function calc() {
let num1 = Number(document.querySelector("#num1").value); // reads the value of the input type text
let num3 = Number(document.querySelector("#num3").value);
let sum = num1*10000 / ((num3*num3) / 100*100);
document.getElementById("sum").value = sum.toFixed(2);
// changes the value of type text in input tag
}
let num1 = Number(document.querySelector("#num1").value); // reads the value of the input type text
let num3 = Number(document.querySelector("#num3").value);
let sum = num1*10000 / ((num3*num3) / 100*100);
document.getElementById("sum").value = sum.toFixed(2);
// changes the value of type text in input tag
}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="index.css">
<title>Document</title>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="index.css">
<title>Document</title>